package com.hospital.frontdesk.fronxiang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * @description：缴费记录实体类
 * @author：xyj
 * @date：2021/9/15 15:56
 * @versions：v1.0
 */
public class Consumeinfos {
    @TableId(type = IdType.AUTO)
    private Integer id;//id
    private Integer cardNo;//卡号
    private String consumeType;//消费类型 1、买药的消费 2、检查的消费  3、挂号的消费
    private String drugType;//详细信息
    private Date times;//消费的时间
    private Double money;//金额
    private FrontdeskCard frontdeskCard;//用户实体对象

    public Consumeinfos() {
    }

    public Consumeinfos(Integer id, Integer cardNo, String consumeType, String drugType, Date times, Double money, FrontdeskCard frontdeskCard) {
        this.id = id;
        this.cardNo = cardNo;
        this.consumeType = consumeType;
        this.drugType = drugType;
        this.times = times;
        this.money = money;
        this.frontdeskCard = frontdeskCard;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCardNo() {
        return cardNo;
    }

    public void setCardNo(Integer cardNo) {
        this.cardNo = cardNo;
    }

    public String getConsumeType() {
        return consumeType;
    }

    public void setConsumeType(String consumeType) {
        this.consumeType = consumeType;
    }

    public String getDrugType() {
        return drugType;
    }

    public void setDrugType(String drugType) {
        this.drugType = drugType;
    }

    public Date getTimes() {
        return times;
    }

    public void setTimes(Date times) {
        this.times = times;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public FrontdeskCard getFrontdeskCard() {
        return frontdeskCard;
    }

    public void setFrontdeskCard(FrontdeskCard frontdeskCard) {
        this.frontdeskCard = frontdeskCard;
    }

    @Override
    public String toString() {
        return "Consumeinfos{" +
                "id=" + id +
                ", cardNo=" + cardNo +
                ", consumeType='" + consumeType + '\'' +
                ", drugType='" + drugType + '\'' +
                ", times=" + times +
                ", money=" + money +
                ", frontdeskCard=" + frontdeskCard +
                '}';
    }
}
